<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<%@ page contentType="text/html;charset=UTF-8" %>
<html>
<head>
    <jsp:include page="/static/common/common.jsp"/>
    <!--department js代码-->
    <script src="/static/js/customerPool.js"></script>
    <title>员工管理</title>
</head>
<body>
<table id="customerPool_datagrid">
</table>

<div id="customerPool_toolbar">
    <a class="easyui-linkbutton" iconCls="icon-add" plain="true"
       data-cmd="view">查看</a>
    <a class="easyui-linkbutton" iconCls="icon-edit" plain="true"
       data-cmd="refresh">刷新</a>
    <a class="easyui-linkbutton" iconCls="icon-remove" plain="true"
       data-cmd="transfer">移交给我</a>
    <a class="easyui-linkbutton" iconCls="icon-remove" plain="true"
       data-cmd="assign">指派给</a>
</div>
<div id="customerPool_dialog">
    <form id="customerPool_form" method="post">
        <input type="hidden" name="id" id="id">
        <table align="center" style="margin-top: 10px;font-size: 12px" cellspacing="10px" width="700px"
               cellpadding="5px">
            <tr align="right" style="height: 30px">
                <td><span style="font-size: 14px">姓名:</span></td>
                <td><input class="easyui-textbox" name="potentialstudent.name" style="width: 130px;height: 22px;"/></td>
                <td><span style="font-size: 14px">年龄:</span></td>
                <td><input class="easyui-textbox" name="age" style="width: 120px;height: 22px;"/></td>
                <td><span style="font-size: 14px">性别:</span></td>
                <td><input class="easyui-combobox" name="sex"
                           data-options="valueField:'value',textField:'label',data:[{'label':'男',value:1},{label:'女',value:2}],panelHeight:'auto'"
                           style="width: 120px;height: 22px;"/></td>
            </tr>
            <tr align="right" style="height: 30px">
                <td><span style="font-size: 14px">电话:</span></td>
                <td><input class="easyui-textbox" name="tel" invalidMessage="电话已存在" validType="remote['/potentialStudent/validateTel.do?id='+id.value,'tel']" style="width: 130px;height: 22px;"/></td>
                <td><span style="font-size: 14px">QQ:</span></td>
                <td><input class="easyui-textbox" name="qq" invalidMessage="qq已存在" validType="remote['/potentialStudent/validateQq.do?id='+id.value,'qq']" style="width: 120px;height: 22px;"/></td>
                <td><span style="font-size: 14px">Email:</span></td>
                <td><input class="easyui-textbox" name="email" style="width: 120px;height: 22px;"/></td>
            </tr>
            <tr align="right" style="height: 30px">
                <td><span style="font-size: 14px">建档日期:</span></td>
                <td><input class="easyui-datebox" name="entryDate" style="width: 130px;height: 22px;"/></td>
                <td><span style="font-size: 14px">微信:</span></td>
                <td><input class="easyui-textbox" name="wechat" style="width: 120px;height: 22px;"/></td>
                <td><span style="font-size: 14px">学校:</span></td>
                <td><input class="easyui-textbox" name="school" style="width: 120px;height: 22px;"/></td>
            </tr>
            <tr align="right" style="height: 30px">
                <td><span style="font-size: 14px">录入时间:</span></td>
                <td><input class="easyui-datetimebox" name="inputTime" style="width: 130px;height: 22px;"/></td>
                <td><span style="font-size: 14px">地址:</span></td>
                <td><input class="easyui-textbox" name="address" style="width: 120px;height: 22px;"/></td>
                <td><span style="font-size: 14px">学历:</span></td>
                <td><input class="easyui-combobox" name="eduBackground" style="width: 120px;height: 22px;"
                           data-options="url:'/systemDictionaryItem/getItemBySn.do?sn=eduBackground',textField:'name',valueField:'name',panelHeight:'auto'"/>
                </td>
            </tr>
            <tr align="right" style="height: 30px">
                <td><span style="font-size: 14px">下次跟进:</span></td>
                <td><input class="easyui-datetimebox" name="followUpTime" style="width: 130px;height: 22px;"/></td>
                <td><span style="font-size: 14px">专业:</span></td>
                <td><input class="easyui-textbox" name="profession" style="width: 120px;height: 22px;"/></td>
                <td><span style="font-size: 14px">来源:</span></td>
                <td><input class="easyui-combobox" name="source" style="width: 120px;height: 22px;"
                           data-options="url:'/systemDictionaryItem/getItemBySn.do?sn=source',textField:'name',valueField:'name',panelHeight:'auto'"/>
                </td>
            </tr>
            <tr align="right" style="height: 30px">
                <td><span style="font-size: 14px">约访时间:</span></td>
                <td><input class="easyui-datetimebox" name="visitTime" style="width: 130px;height: 22px;"/></td>
                <td><span style="font-size: 14px">介绍学员:</span></td>
                <td><input class="easyui-combobox" name="introducerStudent.id" id="introducerStudent" style="width: 120px;height: 22px;"
                           data-options="textField:'name',valueField:'id',panelHeight:'auto'"/>
                <td><span style="font-size: 14px">介绍人:</span></td>
                <td><input class="easyui-textbox" name="introducer" style="width: 120px;height: 22px;"/></td>
            </tr>

            <tr align="right" style="height: 30px">
                <td><span style="font-size: 14px">客户类型:</span></td>
                <td><input class="easyui-combobox" name="clientType" style="width: 130px;height: 22px;"
                           data-options="url:'/systemDictionaryItem/getItemBySn.do?sn=clientType',textField:'name',valueField:'name',panelHeight:'auto'"/>
                </td>
                <td><span style="font-size: 14px">意向程度:</span></td>
                <td><input class="easyui-combobox" name="intentionDegree" style="width: 120px;height: 22px;"
                           data-options="url:'/systemDictionaryItem/getItemBySn.do?sn=intentionDegree',textField:'name',valueField:'name',panelHeight:'auto'"/>
                </td>
                <td><span style="font-size: 14px">当前状态:</span></td>
                <td><input class="easyui-combobox" name="state" style="width: 120px;height: 22px;"
                           data-options="url:'/systemDictionaryItem/getItemBySn.do?sn=state',textField:'name',valueField:'name',panelHeight:'auto'"/>
                </td>
            </tr>
            <tr align="right" style="height: 30px">
                <td><span style="font-size: 14px">入学时间:</span></td>
                <td><input class="easyui-datebox" name="admissionTime" style="width: 130px;height: 22px;"/>
                </td>
                </td>
                <td><span style="font-size: 14px">意向班级:</span></td>
                <td><input class="easyui-combobox" name="grade.id" style="width: 120px;height: 22px;"
                           data-options="url:'/grade/list.do',textField:'className',valueField:'id',panelHeight:'auto'"/>
                </td>
                </td>
                <td><span style="font-size: 14px">学校客户:</span></td>
                <td><input class="easyui-combobox" name="client.id" style="width: 120px;height: 22px;"
                           data-options="url:'/school/list.do',textField:'name',valueField:'id',panelHeight:'auto'"/>
                </td>
            </tr>
            <tr align="right" style="height: 30px">
                <td><span style="font-size: 14px">意向校区:</span></td>
                <td><input class="easyui-combobox" name="campus" style="width: 130px;height: 22px;"
                           data-options="url:'/systemDictionaryItem/getItemBySn.do?sn=campus',textField:'name',valueField:'name',panelHeight:'auto'"/>
                </td>
                <td><span style="font-size: 14px">意向学科:</span></td>
                <td><input class="easyui-combobox" name="subject" style="width: 120px;height: 22px;"
                           data-options="url:'/systemDictionaryItem/getItemBySn.do?sn=subject',textField:'name',valueField:'name',panelHeight:'auto'"/>
                </td>
                <td><span style="font-size: 14px">零付款:</span></td>
                <td align="left">&nbsp;&nbsp;&nbsp;<input type="radio" id="yes_radio" name="isPay" value="1"/>是&nbsp;&nbsp;&nbsp;&nbsp;
                    <input type="radio" id="no_radio" name="isPay" value="0"/>否
                </td>
            </tr>
            <tr align="right" style="height: 80px">
                <td><span style="font-size: 14px">关注问题:</span></td>
                <td colspan="6" align="left"><input type="textarea" name="question"
                                                    style="height: 50px;width: 540px"/>
                </td>
            </tr>
            <tr align="right">
                <td><span style="font-size: 14px">备注:</span></td>
                <td colspan="6" align="left"><input type="textarea" name="comment"
                                                    style="height: 50px;width: 540px"/>
                </td>
            </tr>
        </table>
    </form>
</div>


<div id="dispatch_dialog">
    <form id="dispatch_form" method="post">
        <input type="hidden" name="id">
        <table align="center" style="margin-top: 10px;font-size: 12px" cellspacing="10px" width="250px"
               cellpadding="5px">
            <tr align="right" style="height: 30px">
                <td><span style="font-size: 14px">客户姓名:</span></td>
                <td><input class="easyui-textbox" name="name" style="width: 130px;height: 22px;"/></td>
            </tr>
            <tr align="right" style="height: 30px">
                <td><span style="font-size: 14px">咨询人员:</span></td>
                <td><input id="saleman" class="easyui-combobox" name="saleman.id"
                           style="width: 130px;height: 22px;"
                           data-options="url:'/employee/list.do',textField:'username',valueField:'id',panelHeight:'auto'"/>
                </td>
            </tr>
        </table>
    </form>
</div>
</body>
</html>
